package com.jeesite.modules.fl.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.common.utils.excel.annotation.ExcelField;

@Table(name = "fl_doctor", alias = "a", columns = {
        @Column(name = "id", attrName = "id", label = "id", isPK = true),
        @Column(name = "name", attrName = "name", label = "医师名称", queryType = QueryType.LIKE),
        @Column(name = "en_name", attrName = "enName", label = "英文名称"),
        @Column(name = "sex", attrName = "sex", label = "性别"),
        @Column(name = "description", attrName = "description", label = "简介", queryType = QueryType.LIKE),
        @Column(name = "en_description", attrName = "enDescription", label = "英文简介"),
        @Column(name = "clinics", attrName = "clinics", label = "所属诊所", queryType = QueryType.LIKE),
        @Column(name = "rooms", attrName = "rooms", label = "所属诊室", queryType = QueryType.LIKE),
        @Column(name = "title", attrName = "title", label = "职称"),
        @Column(name = "picture", attrName = "picture", label = "图片上传"),
        @Column(name = "picture_name", attrName = "pictureName", label = "图片文件名"),
        @Column(name = "scheduling_information", attrName = "schedulingInformation", label = "排班信息"),
        @Column(name = "scheduling_information_name", attrName = "schedulingInformationName", label = "排班文件名"),
        @Column(includeEntity = DataEntity.class),
}, orderBy = "a.update_date DESC"
)
public class Doctor extends DataEntity<Doctor>{
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String name;
	private String sex;
	private String description;
	private String clinics;
	private String rooms;
	private String title;
	private String picture;
	private String pictureName;
	private String schedulingInformation;
	private String schedulingInformationName;
	private String enName;
	private String enDescription;
	
	public Doctor(){
		super();
	}
	
	public Doctor(String id){
		super(id);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ExcelField(title="医师名称", sort=1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ExcelField(title="性别", sort=2, dictType="sys_user_sex")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@ExcelField(title="简介", sort=3)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@ExcelField(title="所属诊所", sort=4)
	public String getClinics() {
		return clinics;
	}

	public void setClinics(String clinics) {
		this.clinics = clinics;
	}

	@ExcelField(title="所属诊室", sort=5, dictType="fl_department")
	public String getRooms() {
		return rooms;
	}

	public void setRooms(String rooms) {
		this.rooms = rooms;
	}

	@ExcelField(title="排班信息", sort=6)
	public String getSchedulingInformation() {
		return schedulingInformation;
	}

	public void setSchedulingInformation(String schedulingInformation) {
		this.schedulingInformation = schedulingInformation;
	}

	@ExcelField(title="职称", sort=7, dictType="fl_doctor_title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getPictureName() {
		return pictureName;
	}

	public void setPictureName(String pictureName) {
		this.pictureName = pictureName;
	}

	public String getSchedulingInformationName() {
		return schedulingInformationName;
	}

	public void setSchedulingInformationName(String schedulingInformationName) {
		this.schedulingInformationName = schedulingInformationName;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public String getEnDescription() {
		return enDescription;
	}

	public void setEnDescription(String enDescription) {
		this.enDescription = enDescription;
	}
	
	
}
